package com.wyl.auth.vo;

import cn.hutool.core.lang.tree.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2024/11/30 15:22
 */
@Data
@ApiModel(value = "userPermissionVo")
public class UserPermissionVo {
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "树形菜单")
    private List<Tree<Long>> menuTrees;
    @ApiModelProperty(value = "角色")
    private List<Role> role;
    @ApiModelProperty(value = "菜单编码")
    private List<String> menuCodes;

    @Data
    public static class Role{
        @ApiModelProperty(value = "角色名称")
        private String roleName;
        @ApiModelProperty(value = "角色编码")
        private String roleCode;
    }
}